home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3432 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  758 b 

  1. Path: rover.ucs.ualberta.ca!news
  2. From: jbukczyn@gpu.srv.ualberta.ca (Jacob Bukczynski)
  3. Newsgroups: comp.lang.c
  4. Subject: Recursive function -> how do you exit one?
  5. Date: Mon, 29 Jan 1996 00:40:08 GMT
  6. Organization: University of Alberta, Edmonton, Canada
  7. Message-ID: <4eh1g8$aba@pulp.ucs.ualberta.ca>
  8. NNTP-Posting-Host: async4-9.remote.ualberta.ca
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. I'm using a recursive function to search for files. I need
  12. it to quit when a user presses Esc.
  13.  
  14. Using 
  15.  
  16. return;
  17.  
  18. doesn't seem to work, the funtion runs again. ( I tested
  19. this by putting a printf statement in front of the return -
  20. it got printed over and over again. )
  21.  
  22. Is there a special way of exiting a recursive function?
  23.  
  24. Please reply at jbukczyn@gpu.srv.ualberta.ca
  25.  
  26.  
  27.